package com.lnsf.bookstore.system.coupon.vo;

import com.lnsf.bookstore.system.vipuser.vo.VipUser;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Coupon implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 劵码张数
     */
    private Integer amount;

    /**
     * 优惠券名称
     */
    private String name;

    /**
     * 劵码状态
     */
    private Integer status;

    /**
     * 
     */
    private Date useStartTime;

    /**
     * 
     */
    private Date useEndTime;

    /**
     * 
     */
    private Date startDate;

    /**
     * 
     */
    private Date endDate;

    /**
     * 
     */
    private BigDecimal parPrice;

    /**
     * 
     */
    private BigDecimal maxPrice;

    private VipUser vipUser;

    /**
     * 获得会员名称
     * @return
     */
    public String getVipUserName() {
        if(getVipUser()!=null){
            return getVipUser().getUsername();
        }
        return "--";
    }


    public VipUser getVipUser() {
        return vipUser;
    }

    public void setVipUser(VipUser vipUser) {
        this.vipUser = vipUser;
    }

    /**
     * bs_coupon
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 劵码张数
     * @return amount 劵码张数
     */
    public Integer getAmount() {
        return amount;
    }

    /**
     * 劵码张数
     * @param amount 劵码张数
     */
    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    /**
     * 优惠券名称
     * @return name 优惠券名称
     */
    public String getName() {
        return name;
    }

    /**
     * 优惠券名称
     * @param name 优惠券名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 劵码状态
     * @return status 劵码状态
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 劵码状态
     * @param status 劵码状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 
     * @return useStart 
     */
    public Date getUseStartTime() {
        return useStartTime;
    }

    /**
     * 
     * @param useStartTime 
     */
    public void setUseStartTime(Date useStartTime) {
        this.useStartTime = useStartTime;
    }

    /**
     * 
     * @return useEnd 
     */
    public Date getUseEndTime() {
        return useEndTime;
    }

    /**
     * 
     * @param useEndTime 
     */
    public void setUseEndTime(Date useEndTime) {
        this.useEndTime = useEndTime;
    }

    /**
     * 
     * @return startDate 
     */
    public Date getStartDate() {
        return startDate;
    }

    /**
     * 
     * @param startDate 
     */
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    /**
     * 
     * @return endDate 
     */
    public Date getEndDate() {
        return endDate;
    }

    /**
     * 
     * @param endDate 
     */
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    /**
     * 
     * @return parPrice 
     */
    public BigDecimal getParPrice() {
        return parPrice;
    }

    /**
     * 
     * @param parPrice
     */
    public void setParPrice(BigDecimal parPrice) {
        this.parPrice = parPrice;
    }

    /**
     * 
     * @return maxPrice 
     */
    public BigDecimal getMaxPrice() {
        return maxPrice;
    }

    /**
     * 
     * @param maxPrice
     */
    public void setMaxPrice(BigDecimal maxPrice) {
        this.maxPrice = maxPrice;
    }
}